package com.chebaohui.iqs.service;
/**
 * describe:接口服务层:支付
 * 
 * @author regas_xie
 *
 */

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

import com.chebaohui.iqs.entity.Paramter;
import com.chebaohui.iqs.entity.Result;
import com.chebaohui.iqs.entity.base.Pay;
import com.chebaohui.iqs.entity.pay.Pays;

public interface PayService {

	/**
	 * 微信支付回调处理
	 * 
	 * @param request
	 * @param response
	 */
	public void priceBack(final HttpServletRequest request, final HttpServletResponse response);

	/**
	 * 微信授权回调
	 * 
	 * @param request
	 * @return
	 */
	public ModelAndView backToPrice(final HttpServletRequest request);

	/**
	 * 错误页面
	 * 
	 * @param type
	 * @return
	 */
	public ModelAndView errorView(int type);

	/**
	 * 微信支付
	 * 
	 * @param orderSid
	 * @return
	 */
	public String wxPay(String orderSid, final HttpServletRequest request);

	/**
	 * 支付路径获取
	 * 
	 * @param param
	 * @return
	 */
	public Result<Pay> urlPay(Paramter<Pays> param);
}
